<m:message xmlns="http://www.w3.org/1999/xhtml"
           xmlns:m="http://jboss.org/schema/seam/mail"
           xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:h="http://java.sun.com/jsf/html">
    
          <m:from name="Seam" address="do-not-reply@jboss.com" />
          <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
          <m:subject>Try out Seam!</m:subject>
          <m:attachment value="/jboss.jpg" status="jbossLogo" disposition="inline" /> 
          <m:attachment value="#{numbers}" />
          <m:attachment value="#{person.photo}" contentType="image/png" fileName="#{person.firstname}_#{person.lastname}.jpg" disposition="inline" />
          <m:attachment fileName="whyseam.pdf">
           		<ui:include src="/whyseam.xhtml" />
          </m:attachment>
          <m:attachment fileName="excel.xls">
           		<ui:include src="/excel.xhtml" />
          </m:attachment>
          <ui:repeat value="#{people}" var="p">
	           <m:attachment value="#{p.photo}" contentType="image/jpeg" fileName="#{p.firstname}_#{p.lastname}.jpg" />
          </ui:repeat>
          <m:body>
              <p><h:outputText value="Dear #{person.firstname}" />,</p>
              <p>This example email demonstrates how easy it is to add attachments to an email!</p>
              <p>We can even display attached images inline:</p>
              <img src="cid:#{jbossLogo.contentId}" />
              <p>The attached pdf was generated by Seam's PDF library</p>
    	  </m:body>
</m:message>